import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', redirect: '/index'},
    {path: '/index', name: 'index', component: () => import('@/views/home/index'), meta: {title: '千誉集团公共资源预约'}},
    {path: '/description/:id', name: 'description', component: () => import('@/views/description/index'), meta: {title: '场景简介'}},
    {path: '/booking', name: 'booking', component: () => import('@/views/booking/index'), meta: {title: '千誉集团公共资源预约'}},
    {path: '/bookingDetails/:id', name: 'bookingDetails', component: () => import('@/views/booking/bookingDetails'), meta: {title: '预约申请'}},
    {path: '/user', name: 'user', component: () => import('@/views/user/index'), meta: {title: '我的'}},
    {path: '/bookingInfo/:id', name: 'bookingInfo', component: () => import('@/views/user/bookingInfo'), meta: {title: '预约详情'}},
    {path: '/bookingEvaluate/:id', name: 'bookingEvaluate', component: () => import('@/views/user/bookingEvaluate'), meta: {title: '预约评价'}},
    {path: '/bookingRecord', name: 'bookingRecord', component: () => import('@/views/user/bookingRecord'), meta: {title: '预约记录'}},
    {path: '/checking', name: 'checking', component: () => import('@/views/checking/index'), meta: {title: '审核列表'}},
    {path: '/checkingDetails/:id', name: 'checkingDetails', component: () => import('@/views/checking/checkingDetails'), meta: {title: '预约详情'}},
    {path: '/userInforEntry', name: 'userInforEntry', component: () => import('@/views/verification/userInforEntry'), meta: {title: '用户信息'}},
    {path: '/bindPhone', name: 'bindPhone', component: () => import('@/views/verification/bindPhone'), meta: {title: '手机号绑定'}},
    {path: '/wechatLogin', name: 'wechatLogin', component: () => import('@/views/wechatLogin/index'), meta: {title: '微信登陆'}},
    {path: '/arrivalConfirm', name: 'arrivalConfirm', component: () => import('@/views/arrivalConfirm/index'), meta: {title: '到达确认'}},
    {path: '/loginForArrive/:id', name: 'loginForArrive', component: () => import('@/views/arrivalConfirm/loginForArrive'), meta: {title: '千誉集团公共资源预约'}}
  ]
})
